import axios from "axios";
import {BaseApi} from "@/api/base_api";

export class VideoApi extends BaseApi {
    async get(video_id) {
        let url = this.baseUrl + '/videos/'
        if (video_id !== undefined) {
            url += `?video_id=${video_id}`
        }
        return await axios.get(url).catch(
            err => console.log("err:" + err)
        )
    }
}
